package com.air.ota.vo;

import com.air.ota.util.HexStringUtil;

public class UTKCancelResultDownlinkVO extends UTKBaseDownlinkVO {
	
	protected byte[] cardAppSequence;
	protected byte[] cancelSequence;
	protected byte   mac2Result;
	protected byte[] outerAuthCode;
	
	public UTKCancelResultDownlinkVO(byte[] cardSequence,byte[] pkgSequence,
			byte[] cardAppSequence,byte[] cancelSequence,byte mac2Result,
			byte[] outerAuthCode){
		
		super(cardSequence,pkgSequence);
		this.cmdType = 0x19;
		
		this.cardAppSequence = cardAppSequence;
		this.cancelSequence = cancelSequence;
		this.mac2Result = mac2Result;
		this.outerAuthCode = outerAuthCode;
		
		String cmdDataHexString=HexStringUtil.bytesToHexString(this.cardAppSequence)+
			HexStringUtil.bytesToHexString(this.cancelSequence)+
			HexStringUtil.byteToHexString(this.mac2Result)+
			HexStringUtil.bytesToHexString(this.outerAuthCode)+
			HexStringUtil.bytesToHexString(this.pkgSequence);
	
		this.cmdData = HexStringUtil.hexStringToBytes(cmdDataHexString);
		
	}
	
}
